﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LambdaToSql.Extended
{
    /// <summary>
    /// 弃用
    /// </summary>
    public class SqlFunc
    {
        /// <summary>
        /// 时间处理函数
        /// </summary>
        /// <param name="date"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public static DateTime DateAdd(DateTime? date, int value)
        {
            throw new NotSupportedException("只能用于表达式!");
        }

        /// <summary>
        /// 时间处理函数
        /// </summary>
        /// <param name="date"></param>
        /// <param name="str">直接写表达式</param>
        /// <returns></returns>
        public static DateTime DateAdd(DateTime? date, string str)
        {
            throw new NotSupportedException("只能用于表达式!");
        } 
    }
}
